package beautyofprogramming.gamebeauty;

public class TestPresident {
	
	String[] position = {"","d10","e10","f10","d9","e9","f9","d8","e8","f8",
			"d3","e3","f3","d2","e2","f2","d1","e1","f1"};	//��¼����˧�ĸ������
	public void method1(){	//һ����˼·���ѱ���i��Ϊ������
//		String[][] position = {{},{}};
		int b = 11;
		for(;b/10<=9;b+=10){	//ʮλ��
			for(;b%10<=9&&b<100; b++){
				if(b%10%3 != b/10%3&&b%10!=0)
					System.out.println(b+" "+position[b/10]+" "+position[(b%10+9)]);
			}
		}
	}
	
	//���ϸ���򵥣�����
	public void metnod2(){
		int count = 81;
		while(count-->0){
			if(count/9%3!=count%9%3)
				System.out.println(count/9+1 +" "+(count%9+1));
		}
		
	}
	
	
	public static void main(String[] args) {
		new TestPresident().metnod2();

	}

}
